import Vue from 'vue'
import Router from 'vue-router'

//组件模块
import Home from './pages/Home.vue'
import HomeNews from './pages/HomeNews.vue'
import HomeNewsAll from './pages/HomeNewsAll.vue'
import Publications from './pages/Publications.vue'
import MemberAll from './pages/MemberAll.vue'
import MemberDetail from './pages/MemberDetail.vue'
import Markdown from './pages/Markdown.vue'
import Gallery from './pages/Gallery.vue'
import Research from './pages/Research.vue'






Vue.use(Router)

export default new Router({
    routes: [
        { path: "/", redirect: "/home" },
        { path: "/home", component: Home },
        { path: "/newsall", component: HomeNewsAll },
        { path: "/news", component: HomeNews , props: route => ({ query: route.query })},
        { path: "/markdown", component: Markdown,props: route => ({ query: route.query }) },

        // { path: "/people", component: People },
        { path: "/publications", component: Publications },
        { path: "/memberall", component: MemberAll },
        { path: "/memberdetail", component: MemberDetail , props: route => ({ query: route.query })},
        { path: "/gallery", component: Gallery, props: route => ({ query: route.query }) },
        { path: "/research", component: Research, props: route => ({ query: route.query }) },
        // { path: "/test", component: Article, props: route => ({ query: route.query })},

    ]
})
